package com.demo.controller;


import com.demo.po.Dept;
import com.demo.service.IDeptService;
import com.demo.util.JsonObject;
import com.demo.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;
import java.util.List;

@Controller
public class DeptController {
    @Autowired
    private IDeptService deptService;
    /**
     * 查询所有的部门信息
     */
    @RequestMapping("dept/deptAll")
    @ResponseBody
    public String queryDeptAll(){
        List<Dept> list= deptService.queryDeptAll();
        System.out.println(list);
        return "";
    }

}
